package com.crane.common.core.utils;

import java.util.regex.Pattern;

public final class PhoneUtils {
	
	public final static String PHONE_PATTERN="^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$";
	
	public static boolean isPhone(String var) {
		boolean isPhone = Pattern.compile(PHONE_PATTERN).matcher(var).matches();
		return isPhone;
	}

}
